#include"vector.h"
#include<iostream>


void test() {
	Vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);
	v.push_back(6);
	for (int i = 0; i < v.size(); ++i) {
		cout << v[i] << " ";
	}
	cout << endl;

	for (auto e : v) {
		cout << e << " ";
	}
	cout << endl;

	Vector<int>::iterator it = v.begin();
	while (it != v.end()) {
		cout << *it << " ";
		++it;
	}
	cout << endl;

}
void test1() {
	Vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);
	v.push_back(6);
	for (int i = 0; i < v.size(); ++i) {
		cout << v[i] << " ";
	}
	cout << endl;
	v.erase(v.begin());
	v.insert(v.begin() + 3, 9);

	for (int i = 0; i < v.size(); ++i) {
		cout << v[i] << " ";
	}
}

int main() {
	test1();
	return 0;
}